<!doctype html>
<html>

	<head>
		<meta charset="UTF-8">
		<title>{$Think.lang.my_team}</title>
		<meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1,maximum-scale=1,user-scalable=no" />
		<link href="INDEX/css/mui.min.css" rel="stylesheet" />
		<link rel="stylesheet" type="text/css" href="INDEX/css/main.css"/>
		<link rel="stylesheet" type="text/css" href="INDEX/css/extend.css"/>
		<style type="text/css">
			.team_content{
				width:100%;
			}
			.team_top{
				width: 100%;
				background: #FFFFFF;
			}
			h3,h4{
				font-weight: normal;
			}
			h3{
				font-size: 1em;
			}
			h4{font-size: 0.9em;}
			.team_top_title{
				width: 100%;
				border-bottom: 1px solid #F2F2F2;
				padding: 0.5em;
			}
			.team_top_det{
				display: flex;
				justify-content: space-around;
				text-align: center;
			}
			.team_top_det h4{
				color: #7A7A7A;
			}
			.table_box table th{
				padding: 5px 10px;
			}
           .mui-switch{
      		width:36px;
        	height:18px;
      }
      header div{
      		top : 30%;
      }
      .mui-switch .mui-switch-handle{
      		width:20px;
        	height:20px;
        left:-4px;
        top: -3px;
      }
      .mui-switch.mui-active:before{
      	top:-3px;
        left:1px;
      }
      .mui-switch.mui-active .mui-switch-handle {
    	-webkit-transform: translate(43px,0);
    	transform: translate(20px,0);
		}
      .mui-switch:before{
      		top:-3px;
        	left:15px;
      }
		</style>
	</head>

	<body>
		<script src="INDEX/js/mui.min.js"></script>
		<script type="text/javascript">
			mui.init()
		</script>
		<script src="INDEX/js/jquery-1.8.0.min.js" type="text/javascript" charset="utf-8"></script>	
		<script>
			mui.init();
			$(document).ready(function(){
			   $("#header").load("INDEX/header.html");			   
			});
		</script>
		<header class="mui-bar mui-bar-nav">
			<a href="#offCanvasSide" class="right_top"></a>
			<!--<a class="mui-switch "></a>-->
			<div class="mui-switch mui-pull-right {if $think_var=='zh-cn'}mui-active{/if}" id="mySwitch">
  				<div class="mui-switch-handle"></div>
			</div>
			<h1 class="mui-title">{$Think.lang.project_title}</h1>
		</header>
		<div id="offCanvasWrapper" class="mui-off-canvas-wrap mui-slide-in">
				<div id="header">{include file='header'/}</div>
			<div class="mui-inner-wrap">
				<div id="offCanvasContentScroll" class="mui-content mui-scroll-wrapper mui-slide-in">
					<div class="mui-scroll">
						<div class="team_content">
							<div class="team_top">
								<div class="team_top_title">
									<h4 style="display: inline-block;">{$Think.lang.user_agent_level}  <h3 style="color: #EE2424;display: inline-block;margin-left: 5px;">{if condition = "$think_var eq 'zh-cn'"}{$res['name']}{else}{$res['name_en']}{/if}</h3></h4>
								</div>
								<div class="team_top_det">
									<div class="line_extend">
										<h4>{$Think.lang.user_direct_drive_number}</h4>
										<span style="color: #EE2424;">{$res['valid_recom']}</span>
									</div>
									<div class="team_num">
										<h4>{$Think.lang.user_team_number}</h4>
										<span style="color: #EE2424;">{$res['valid_team']}</span>
									</div>
									<div class="team_total_money">
										<h4>{$Think.lang.user_team_money}</h4>
										<span style="color: #EE2424;">${$res['team_money']}</span>
									</div>
								</div>
							</div>
							<div class="extend_middle">
								<div class="cash_history">
									<div class="cash_history_title">{$Think.lang.team_intr}</div>
									<div class="history_table">
										<div class="table_box">
											<table border="" cellspacing="5" cellpadding="5" rules="none">
												<tr>
													<th>{$Think.lang.user_mebmer}</th>
													<th>{$Think.lang.user_agent_level}</th>
													<th>{$Think.lang.user_direct_drive_number}</th>
													<th>{$Think.lang.user_team_number}</th>
													<th>{$Think.lang.user_team_money}</th>
													<th>{$Think.lang.user_operation}</th>												
												</tr>
												{foreach $teams as $team}
												<tr>
													<td>{$team['user_name']}</td>
													{if condition = "$think_var eq 'zh-cn'"}
													<td>{$team['name']}</td>
													{else}
													<td>{$team['name_en']}</td>
													{/if}
													
													<td>{$team['valid_recom']}</td>
													<td>{$team['valid_team']}</td>
													<td>{$team['team_money']}</td>	
													<td class=""><a href="{:Url('index/users/next_level','uid='.$res['user_id'])}">{$Think.lang.user_next_level}</a></td>
												</tr>
												{/foreach}
											</table>
										</div>
									</div>
								</div>
							</div>
						</div>
					</div>
				</div>
			</div>	
		</div>
	</body>
	<script src="INDEX/js/switchover.js"></script>
	<script type="text/javascript">
		$(".show_next").click(function(){
			mui.openWindow({
				url:'INDEX/extend/next_level.html',
			    id:'next_level',
			    styles:{
			      top:0,//新页面顶部位置
			      bottom:0,//新页面底部位置			      
			    }
			})
		})
	</script>

</html>